<template>
  <el-icon v-if="item?.icon">
    <component :is="item?.icon"></component>
  </el-icon>
  <span>{{ item.name }}</span>
</template>

<script setup lang="ts">
import { RouteMeta } from 'vue-router'

defineProps<{
  item: RouteMeta
}>()
</script>

<style scoped></style>
